export default [
  {
      url: "/api/login",
      method: "post",
      response: (req) => {
        let {name,password} = req.body
        if(name=="admin" && password=="admin"){
          return {
            code: 200,
            message: "ok",
            data: {user:{name:"rouzi"},token:'mytoken'},
          };
        }else{
          return {
            code: 401,
            message: "用户无权限",
            data: {name:"rouzi"},
          };
        }
      },
  },
  {
      url: "/api/loginOut",
      method: "get",
      response: (req) => {
        return {
          code: 200,
          message: "已退出登录",
        };
      },
  },
];